Start recursively moving autocleanups macros to their headers
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 10 Nov 2015 13:59:36 +0000 (13:59 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 10 Nov 2015 13:59:36 +0000 (13:59 +0000)
commit93369788c907b9c61204ff377854729cd404e25f
tree7b952164ccebb6c46be79b1cbb38129f33a47332
parentd589170754af9620feabb0e598b626116470557f
Start recursively moving autocleanups macros to their headers

* Cover letter

Having a single header file for all autocleanups definitions was a
reasonable stop-gap measure, but now GTK+ is starting to use G_DECLARE_*
macros. This means that every class using a G_DECLARE_* macro will need
to include "gtk.h" to avoid compiler warnings, which is not acceptable.

By moving the G_DEFINE_AUTO* use to the header that defines the type we
allow using the G_DECLARE_* macros without sacrificing the ability to
include only the needed files when deriving from a class.

* Commit

This commit changes all includes relative to GtkWindow to define their
own autocleanup macros.
gtk/gtk-autocleanups.h
gtk/gtkaccelgroup.h
gtk/gtkapplication.h
gtk/gtkbin.h
gtk/gtkborder.h
gtk/gtkcontainer.h
gtk/gtkwidget.h